package com.foreverwin.mes.lims.util;
import java.text.ParseException;
import java.util.Date;
import java.text.SimpleDateFormat;
public class NowString {
    public static String NowString(){
        SimpleDateFormat df = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");//设置日期格式
//        System.out.println(df.format(new Date()));// new Date()为获取当前系统时间
        return df.format(new Date());
    }

    public static Date minDate ()  {
        SimpleDateFormat sdf = new SimpleDateFormat( "yyyy-MM-dd HH:mm:SS" );
        String _minTime="2000-01-01 00:00:00";
        Date minTime = null;
        try {
             minTime = sdf.parse(_minTime);
        } catch (ParseException e) {
            e.printStackTrace();
        }
        return minTime;
    }
}
